package com.urea.web.task;

import com.urea.system.service.ITerminalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Author liuzd
 * @Date 2024/1/9 15:44
 */
@Component()
@Slf4j
public class TerminalRenewedJob {
    @Autowired
    ITerminalService terminalService;

    //@Scheduled(cron = "0/30 * * * * *")
    @Scheduled(cron = "0 0 1 * * ? ")
    void renewedJob(){
        terminalService.setUnpaid();
    }
}
